package com.jkoss.wine.merchantOrder.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;


/**
 * 
 * 
 * @Author Ning
 * @Version 1.0, 2018-10-05
 * @See
 * @Since com.jkoss.wine.merchantOrder.entity
 * @Description: TODO
 */
@TableName("merchant_basket")
public class MerchantBasket extends Model<MerchantBasket> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId("merchant_basket_id")
    private String merchantBasketId;
    /**
     * 店铺ID
     */
    @TableField("shop_id")
    private String shopId;
    /**
     * 店铺的产品规格id
     */
    @TableField("shop_norm_id")
    private String shopNormId;
    /**
     * 商家的产品规格id
     */
    @TableField("merchant_norm_id")
    private String merchantNormId;
    /**
     * 店铺的产品id
     */
    @TableField("shop_product_id")
    private String shopProductId;
    /**
     * 商家的产品id
     */
    @TableField("merchant_product_id")
    private String merchantProductId;
    /**
     * 购物车数量
     */
    @TableField("basket_count")
    private Integer basketCount;
    /**
     * 购物车价格
     */
    @TableField("basket_price")
    private Integer basketPrice;
    /**
     * 购物车总额 = 数量*价格*折扣 =  basket_count * basket_price  *  basket_discount
     */
    @TableField("basket_total")
    private Integer basketTotal;
    @TableField("merchant_order_id")
    private String merchantOrderId;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private Date addTime;
    /**
     * 是否删除 0否1是
     */
    @TableField("del")
    private Integer del;


    public String getMerchantBasketId() {
        return merchantBasketId;
    }

    public void setMerchantBasketId(String merchantBasketId) {
        this.merchantBasketId = merchantBasketId;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getShopNormId() {
        return shopNormId;
    }

    public void setShopNormId(String shopNormId) {
        this.shopNormId = shopNormId;
    }

    public String getMerchantNormId() {
        return merchantNormId;
    }

    public void setMerchantNormId(String merchantNormId) {
        this.merchantNormId = merchantNormId;
    }

    public String getShopProductId() {
        return shopProductId;
    }

    public void setShopProductId(String shopProductId) {
        this.shopProductId = shopProductId;
    }

    public String getMerchantProductId() {
        return merchantProductId;
    }

    public void setMerchantProductId(String merchantProductId) {
        this.merchantProductId = merchantProductId;
    }

    public Integer getBasketCount() {
        return basketCount;
    }

    public void setBasketCount(Integer basketCount) {
        this.basketCount = basketCount;
    }

    public Integer getBasketPrice() {
        return basketPrice;
    }

    public void setBasketPrice(Integer basketPrice) {
        this.basketPrice = basketPrice;
    }

    public Integer getBasketTotal() {
        return basketTotal;
    }

    public void setBasketTotal(Integer basketTotal) {
        this.basketTotal = basketTotal;
    }

    public String getMerchantOrderId() {
        return merchantOrderId;
    }

    public void setMerchantOrderId(String merchantOrderId) {
        this.merchantOrderId = merchantOrderId;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    protected Serializable pkVal() {
        return this.merchantBasketId;
    }

    @Override
    public String toString() {
        return "MerchantBasket{" +
        ", merchantBasketId=" + merchantBasketId +
        ", shopId=" + shopId +
        ", shopNormId=" + shopNormId +
        ", merchantNormId=" + merchantNormId +
        ", shopProductId=" + shopProductId +
        ", merchantProductId=" + merchantProductId +
        ", basketCount=" + basketCount +
        ", basketPrice=" + basketPrice +
        ", basketTotal=" + basketTotal +
        ", merchantOrderId=" + merchantOrderId +
        ", addTime=" + addTime +
        ", del=" + del +
        "}";
    }
}
